package fr.mycompany.sas.xml.jaxb;

import java.util.Date;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class JaxbXmlDateAdapter extends XmlAdapter<String, Date> {

	@Override
	public Date unmarshal(String v) throws Exception {
		return (JaxbDateConverter.parseDateTime(v));
	}

	@Override
	public String marshal(Date v) throws Exception {
		return (JaxbDateConverter.printDateTime(v));
	}

}
